
// 上传图片模型
class XinDongUploadImageClass {
  late String url;
  late int width;
  late int height;

  XinDongUploadImageClass({required this.url, required this.width, required this.height});

  // Json转Class
  factory XinDongUploadImageClass.fromJson(Map<String, dynamic> json) {
    return XinDongUploadImageClass(
      url: json['url'],
      width: json['width'],
      height: json['height'],
    );
  }

  // Class转Map
  Map<String, dynamic> toMap() => {
    'url': url,
    'width': width,
    'height': height,
  };
}
